//
//  NSDictionary+HKHttpManager.m
//  HKHttpManager
//
//  Created by 胡锦涛 on 2019/5/11.
//  Copyright © 2019 StevenHu. All rights reserved.
//

#import "NSDictionary+HKHttpManager.h"

@implementation NSDictionary (HKHttpManager)
- (NSString *)httpManager_toJsonString {
    NSError *error = nil;
    NSData *data = [NSJSONSerialization dataWithJSONObject:self options:NSJSONWritingPrettyPrinted error:&error];
    if (error) {
        return nil;
    }
    return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
}
@end
